package com.jr.util;

import cn.hutool.json.JSONUtil;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by IntelliJ IDEA.
 *
 * @author: ZhiHu.Liu
 * @date: 2020/3/27 11:10 上午
 */
public class ResultUtil {

    public static String result(Object code, Object data) {
        Map<Object, Object> map = new HashMap<>();
        map.put("code", code);
        map.put("data", data);
        return JSONUtil.toJsonStr(map);
    }
}
